package com.dhcc.bpm.modules.log.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springblade.core.mp.base.BaseEntity;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiafayu
 * @since 2022-04-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("OPC_OPER_LOG")
@ApiModel(value="OpcOperLog对象", description="")
public class ApiOperLog extends BaseEntity {

    private static final long serialVersionUID=1L;

    @TableField("OPER_PARAM")
    private String operParam;

    @TableField("ERROR_MSG")
    private String errorMsg;

    @TableField("OPER_TIME")
    private LocalDateTime operTime;

    @TableField("REMARK")
    private String remark;

    @TableField("TENANT_ID")
    private String tenantId;

    @TableField("VERSION")
    private String version;

    @TableField("BEFORE_PARAM")
    private String beforeParam;

    @JsonSerialize(
            using = ToStringSerializer.class,
            nullsUsing = NullSerializer.class
    )
    @TableField("API_ID")
    private Long apiId;


}
